package Month07.day21;

public class test {
    public static void main(String[] args) {
        String string="12 32 89 32 45 2 54";
        String[] strings = string.split(" ");
        int sum=0;
        for (int i = 0; i < strings.length; i++) {
            int value=Integer.parseInt(strings[i]);
            if (sum<value){
                sum=value;
            }
        }
        System.out.println(sum);
    }
}
